package la.iok.hzsvn.lewin.movie.cloud.entity;

import java.util.Date;

/**
 * 用户登录记录。
 */
public class LoginRecord {
    /**
     * 密码登录常量
     */
    public static final Integer LOGIN_TYPE_PWD = 1;
    /**
     * 手机验证码登录常量
     */
    public static final Integer LOGIN_TYPE_PHONE_CODE = 2;
    /**
     * 微信小程序登录
     */
    public static final Integer LOGIN_TYPE_WX_MINI_PROGRAM = 3;
    private Long id;
    /**
     * 手机号，目前也是用户账号
     */
    private String phoneNumber;
    /**
     * 登录用户id.手机号在登录的时候对应的用户id
     */
    private Long userId;
    /**
     * 登录设备唯一码
     */
    private String deviceCode;
    /**
     * 操作系统名称
     */
    private String osName;
    /**
     * 操作系统版本
     */
    private String osVersion;
    /**
     * 设备型号
     */
    private String model;
    /**
     * 客户端应用名称
     */
    private String clientName;
    /**
     * 客户端应用程序版本
     */
    private String clientVersion;
    /**
     * 登录时间
     */
    private Date loginTime;
    /**
     * 登录类型,1：密码登录；2：验证码登录
     */
    private Integer loginType;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getOsName() {
        return osName;
    }

    public void setOsName(String osName) {
        this.osName = osName;
    }

    public String getOsVersion() {
        return osVersion;
    }

    public void setOsVersion(String osVersion) {
        this.osVersion = osVersion;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getClientVersion() {
        return clientVersion;
    }

    public void setClientVersion(String clientVersion) {
        this.clientVersion = clientVersion;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public Integer getLoginType() {
        return loginType;
    }

    public void setLoginType(Integer loginType) {
        this.loginType = loginType;
    }
}
